<#assign className = table.className>   
<#assign classNameLower = className?uncap_first> 
package ${basePackage}.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

<#list table.importPackages as packages>
import ${packages};
</#list>

/**
  * ${table.remarks}
  * @author ${env.USERNAME}
  *	@date ${now?string("yyyy/MM/dd")}
  *	@version 1.0.0
  */

@TableName("${table.tableName}")
public class ${className}{
<#list table.columns as column>

	/**
     * ${column.remarks}
	 * 
     */
	<#if column.primaryKey>
    @TableId(value = "${column.columnName}", type = IdType.AUTO)
	<#else >
    @TableField("${column.columnName}")
	</#if>
	private ${column.javaType} ${column.javaProperty};
</#list>

<#list table.columns as column>

	public void ${column.setterMethodName}(${column.javaType} ${column.javaProperty}) {
		this.${column.javaProperty} = ${column.javaProperty};
	}
	
	public ${column.javaType} ${column.getterMethodName}() {
		return this.${column.javaProperty};
	}
</#list>
	

}
